package com.qumap.common.event;

import com.google.gwt.event.shared.GwtEvent;

/**
 * Created by IntelliJ IDEA.
 * User: Admin
 * Date: 25.06.11
 * Time: 16:19
 * To change this template use File | Settings | File Templates.
 */
public class GlobalEvent extends GwtEvent<GlobalEventHandler> {

    private Type<GlobalEventHandler> global_event_handler_type;

    public GlobalEvent(Type<GlobalEventHandler> item_event_handler_type) {
        this.global_event_handler_type = item_event_handler_type;
    }


    @Override
    public Type<GlobalEventHandler> getAssociatedType() {
        return global_event_handler_type;  //To change body of implemented methods use File | Settings | File Templates.
    }

    @Override
    protected void dispatch(GlobalEventHandler globalEventHandler) {
        globalEventHandler.onGlobalEvent(this);
    }
}
